package com.dkm.entity;

import java.util.Date;

//mybatis映射实体类
public class MessagePojo {

	private Integer mid;
	
	private String content;
	
	private String status;
	private Date sendTime;
	private String mtype;
	
	private String sender_id;
	
	private String receiver_id;
	
	//消息和发送者多对一
	private UserPojo sender;
	//消息和接收者多对一
	private UserPojo receiver;
	
	public String getSender_id() {
		return sender_id;
	}
	public void setSender_id(String sender_id) {
		this.sender_id = sender_id;
	}
	public String getReceiver_id() {
		return receiver_id;
	}
	public void setReceiver_id(String receiver_id) {
		this.receiver_id = receiver_id;
	}
	public MessagePojo() {
		super();
		// TODO Auto-generated constructor stub
	}
	public MessagePojo(Integer mid, String content, String status, Date sendTime, String mtype) {
		super();
		this.mid = mid;
		this.content = content;
		this.status = status;
		this.sendTime = sendTime;
		this.mtype = mtype;
	}
	public Integer getMid() {
		return mid;
	}
	public void setMid(Integer mid) {
		this.mid = mid;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public Date getSendTime() {
		return sendTime;
	}
	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}
	public String getMtype() {
		return mtype;
	}
	public void setMtype(String mtype) {
		this.mtype = mtype;
	}
	
	public UserPojo getSender() {
		return sender;
	}
	public void setSender(UserPojo sender) {
		this.sender = sender;
	}
	public UserPojo getReceiver() {
		return receiver;
	}
	public void setReceiver(UserPojo receiver) {
		this.receiver = receiver;
	}
	@Override
	public String toString() {
		return "MessagePojo [mid=" + mid + ", content=" + content + ", status=" + status + ", sendTime=" + sendTime
				+ ", mtype=" + mtype + "]";
	}
	
}
